/** When your routing table is too long, you can split it into small modules **/

/**
 * 二维码管理模块
 */

import Layout from '@/layout'

const ewmRouter = {
	path: '/ewm',
	component: Layout,
	redirect: '/dashboard',
	meta: {title: '产品二维码',icon: 'ewm',noCache: true,roles: ['rsAdmin','rsEditor']},
	children: [
		{
			path: 'jingzhongmaozhong',
			component: () => import('@/views/ewm/jingzhongmaozhong/index'),
			name: 'Jingzhongmaozhong',
			meta: { title: '净重/毛重管理',roles: ['rsAdmin'], noCache: true },
		},
		{
			path: 'zhixingbiaozhun',
			component: () => import('@/views/ewm/zhixingbiaozhun/index'),
			name: 'Zhixingbiaozhun',
			meta: {title: '执行标准汇总',roles: ['rsAdmin'],noCache: true}
		},
		{
			path: 'xinzengzhixing',
			component: () => import('@/views/ewm/zhixingbiaozhun/xinzengzhixing/index'),
			name: 'Xinzengzhixing',
			meta: {title: '编辑执行标准',noCache: true,roles: ['rsAdmin'],activeMenu: '/ewm/zhixingbiaozhun'},
			hidden: true
		},
		{
			path: 'shiyongliang',
			component: () => import('@/views/ewm/shiyongliang/index'),
			name: 'Shiyongliang',
			meta: {title: '使用量',noCache: true,roles: ['rsAdmin']}
		},
		{
			path: 'addshiyongliang',
			component: () => import('@/views/ewm/shiyongliang/addshiyongliang'),
			name: 'Addshiyongliang',
			meta: {title: '编辑使用量',noCache: true,roles: ['rsAdmin'],activeMenu: '/ewm/shiyongliang'},
			hidden: true
		},
		{
			path: 'siliao',
			component: () => import('@/views/ewm/siliao/index'),
			name: 'Siliao',
			meta: {title: '通用模板',noCache: true,roles: ['rsAdmin']}
		},
		{
			path: 'teshu',
			component: () => import('@/views/ewm/teshu/index'),
			name: 'Teshu',
			meta: {title: '特殊模板',noCache: true,roles: ['rsAdmin']}
		},
		{
			path: 'teshu1',
			component: () => import('@/views/ewm/teshu/teshu1/index'),
			name: 'Teshu1',
			meta: {title: '创建特殊模板',noCache: true,roles: ['rsAdmin'],activeMenu: '/ewm/teshu'},
			hidden: true
		},
		{
			path: 'moban',
			component: () => import('@/views/ewm/moban/index'),
			name: 'Moban',
			meta: {title: '模板列表',roles: ['rsAdmin']}
		},
		{
			path: 'lookmoban',
			component: () => import('@/views/ewm/moban/lookMoban'),
			name: 'Lookmoban',
			meta: {title: '查看模板',noCache: true,activeMenu: '/ewm/moban',roles: ['rsAdmin']},
			hidden: true
		},
		{
			path: 'wirtemoban',
			component: () => import('@/views/ewm/moban/writeMoban'),
			name: 'Wirtemoban',
			meta: {title: '修改模板',noCache: true,roles: ['rsAdmin'],activeMenu: '/ewm/moban'},
			hidden: true
		},
		{
			path: 'mulu',
			component: () => import('@/views/ewm/mulu/index'),
			name: 'Mulu',
			meta: {title: '目录列表',noCache: true,roles: ['rsAdmin']}
		},
		{
			path: 'yonghumoban',
			component: () => import('@/views/ewm/yonghumoban/index'),
			name: 'Yonghumoban',
			meta: {title: '用户模板列表',roles: ['rsAdmin','rsEditor']}
		},
		{
			path: 'getEwm',
			component: () => import('@/views/ewm/yonghumoban/getEwm'),
			name: 'GetEwm',
			meta: {title: '生成二维码',noCache: true,roles: ['rsAdmin','rsEditor'],activeMenu: '/ewm/yonghumoban'},
			hidden: true
		},
		{
			path: 'lookYonghu',
			component: () => import('@/views/ewm/yonghumoban/lookYonghu'),
			name: 'LookYonghu',
			meta: {title: '查看',noCache: true,roles: ['rsAdmin','rsEditor'],activeMenu: '/ewm/yonghumoban'},
			hidden: true
		},
		{
			path: 'ewmliebiao',
			component: () => import('@/views/ewm/ewmliebiao/index'),
			name: 'Ewmliebiao',
			meta: {title: '二维码列表',roles: ['rsAdmin','rsEditor']}
		},
		{
			path: 'imgUpload',
			component: () => import('@/views/imgUpload/index'),
			name: 'ImgUpload',
			meta: { title: '验证图片管理',noCache: true,roles: ['rsAdmin'] }
		}
		// {
		// 	path: 'jingzhongmaozhong',
		// 	component: () => import('@/views/ewm/jingzhongmaozhong/index'),
		// 	name: 'Jingzhongmaozhong',
		// 	meta: { title: '净重/毛重管理', noCache: true, roles: ['admin', 'editor'] },
		// 	hidden: true
		// },
	]
}

export default ewmRouter
